package org.eenie.appseed.ui.counter

import org.eenie.core.base.viewmodel.BaseViewModel

class CounterViewModel : BaseViewModel<CounterState>(CounterState.InitState()) {
    private var count = 0


    fun sub() {
        count -= 1
        viewState = CounterState.OnCountChange(count)
    }


    fun increment() {
        count += 1
        viewState = CounterState.OnCountChange(count)
    }


}